using System;

namespace MyBasicLib.Collections.Generic
{
    public interface ICache<TKey, TValue>
    {
        int Count { get; }
        TValue FetchOrCreateItem(TKey key, Func<TKey, TValue> creator);
        void InvalidateItem(TKey key);

    }
}